package com.sincon.web.controller.bilibili;

import com.sincon.core.config.AvatarConfig;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

@RestController
@RequestMapping("/api/avatar")
public class AvatarController {
    
    @GetMapping("/random")
    public Map<String, String> getRandomAvatar() {
        Map<String, String> response = new HashMap<>();
        response.put("url", AvatarConfig.getRandomAvatar());
        return response;
    }
} 